<%= link_to("<< Back to List", {:action => 'list'}, :class => 'back-link') %>

<div class="produce new">
	<h2>Create Subject</h2>

	<%= form_for(:produce, :url => {:action => 'create'}) do |f| %>
		<table sumary="Subject form fields">
			<tr>
				<th>Name</th>
				<td><%= f.text_field(:name) %></td>
			</tr>

			<tr>
				<th>Img</th>
				<td><%= f.text_field(:image) %></td>
			</tr>

			<tr>
				<th>Type</th>
				<td><%= f.text_field(:type_of_produce) %></td>
			</tr>

			<tr>
				<th>Taste</th>
				<td><%= f.text_field(:taste) %></td>
			</tr>

			<tr>
				<th>Origin</th>
				<td><%= f.text_field(:origin) %></td>
			</tr>

			<tr>
				<th>Add day</th>
				<td><%= f.text_field(:add_day) %></td>
			</tr>

			<tr>
				<th>End day</th>
				<td><%= f.text_field(:end_day) %></td>
			</tr>

			<tr>
				<th>Description</th>
				<td><%= f.text_field(:description) %></td>
			</tr>

			<tr>
				<th>Available</th>
				<td><%= f.text_field(:available) %></td>
			</tr>

			<tr>
				<th>Buy</th>
				<td><%= f.text_field(:buy) %></td>
			</tr>

			<tr>
				<th>Price</th>
				<td><%= f.text_field(:price) %></td>
			</tr>

		</table>

		<div class="form-buttons">
			<%= submit_tag("Create Subject") %>
		</div>
	<% end %>
</div>